<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>汽车详情</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" crossorigin="anonymous">
    <style>
        h1
        {
            margin: 0 auto;
            text-align: center;
        }
    </style>
</head>
<body>
    <h1>汽车数据</h1>

    <table class="table table-striped">
        <thead>
        <tr>
            <td>汽车品牌</td>
            <td>平均速度</td>
            <td>一百公里用油量</td>
        </tr>
        </thead>
        <tbody>
        <tr th:each="Cars:${Cars}">
            <td th:text="${Cars.name}"></td>
            <td th:text="${Cars.Oil}"></td>
            <td th:text="${Cars.Velocity}"></td>
        </tr>
        </tbody>
    </table>
</body>
</html>